# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py-gi
_pkgname=gi
pkgver=1.2
pkgrel=0
pkgdesc="Command line to private gist. Example: gi.py myFile"
url="http://github.com/inconditus/gi"
arch="noarch"
license="MIT"
depends="python2"
depends_dev=""
makedepends="$depends_dev python2-dev py-setuptools"
install=""
subpackages=""
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"

builddir="$srcdir"/$_pkgname-$pkgver

build() {
	cd "$builddir"
	python2 setup.py build || return 1
}

package() {
	cd "$builddir"
	python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

md5sums="63bdf817281813f049064133ed584a6e  gi-1.2.tar.gz"
sha256sums="13e5a3c227a8bb6fdaf22ca5b70aa81acc936955cb5d3ec10c1c8bf34b79aaea  gi-1.2.tar.gz"
sha512sums="9651f05423bfd75f1bab1fa03193fab351fbc3b675e49f233613f0e8d6d615bb4d48c31884b633b71c63eb438e669104d5baf89d509279bfaa851d0ebd3e7005  gi-1.2.tar.gz"
